import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, browserHistory, IndexRoute } from 'react-router';
import registerServiceWorker from './registerServiceWorker';

import Index from './components/index/Index';
import Center from './components/center/Center';
import Account from './components/user/account/Account';
import RealCheck from './components/user/realCheck/RealCheck';
import Message from './components/user/message/Message';
import GoldCoin from './components/user/goldCoin/GoldCoin';
import Order from './components/user/order/Order';
import SiteAdmin from './components/service/siteAdmin/SiteAdmin';
import ShortMessage from './components/service/shortMessage/ShortMessage';
import 'antd/dist/antd.css';

ReactDOM.render((
    <Router history={browserHistory}>
        <Route path="/" component={Index}>
            <IndexRoute component={Center} />
            <Route path="account" component={Account} />
            <Route path="realcheck" component={RealCheck} />
            <Route path="message" component={Message} />
            <Route path="goldcoin" component={GoldCoin} />
            <Route path="order" component={Order} />
            <Route path="siteadmin" component={SiteAdmin} />
            <Route path="shortmessage" component={ShortMessage} />
        </Route>
    </Router>
), document.getElementById('root'));
registerServiceWorker();